package com.soso.j.spider.config;

import java.io.InputStream;
import java.util.Properties;

public class SystemProperty {
	private static final Properties systemProp = new Properties();
	static{
		try {
	        final InputStream resourceAsStream = SystemProperty.class.getResourceAsStream("/system.properties");
	        if (null != resourceAsStream) {
	        	systemProp.load(resourceAsStream);
	        }
	    } catch (final Exception e) {
	        throw new RuntimeException("Not found system.properties");
	    }
	}
	public static String getServerPath(){
		return systemProp.get("server.path").toString();
	}
	

}
